﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using SmsUI.N77;

namespace SmsUI
{
    public partial class ModifyMaTypeForm : DevExpress.XtraEditors.XtraForm
    {
        public ModifyMaTypeForm()
        {
            InitializeComponent();
            this.comboBoxEdit1.SelectedIndexChanged += new EventHandler(comboBoxEdit1_SelectedIndexChanged);
            this.comboBoxEdit1.SelectedIndex = 0;
        }

        void comboBoxEdit1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (!CheckDog.IsSupp(comboBoxEdit1.SelectedIndex))
            {
                comboBoxEdit1.SelectedIndex = CheckDog.AvilibalInt();
            }

        }
        public int MaType = 0;
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            MaType = comboBoxEdit1.SelectedIndex;
            this.Close();
        }

        private void simpleButton2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }
    }
}